package com.aos.erp.schools.service.student;
import com.aos.erp.common.bean.PageBean;
import com.aos.erp.schools.model.student.StudentExam;
import com.aos.erp.schools.model.student.ro.exam.StudentYueKaoRo;
import com.aos.erp.schools.model.student.ro.exam.UpdateYueKaoRo;
import com.aos.erp.schools.model.student.ro.student.SelectByStateRo;
import com.aos.erp.schools.model.student.vo.eaxm.ShowUpdateExamVo;
import com.aos.erp.schools.model.student.vo.eaxm.StudentYueKaoExamVo;
import com.aos.erp.schools.model.student.vo.student.StudentEaxmVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Auther: chb
 * @Date: 2018/11/2 14:44
 * @Description: 学员预约考试Service
 */
public interface StudentExamService {

    void saveBean(StudentExam studentExam) throws Exception;;
    //根据 科目 查找对应的 学员
    PageBean<StudentEaxmVo> queryBySubject(SelectByStateRo ro);
    //查询-得到达到约考条件的学员
    PageBean<StudentYueKaoExamVo> queryStudentYueKaoExam(StudentYueKaoRo ro);

    //修改 约考的状态 和消息推送状态
    int updateYueKaoExam(UpdateYueKaoRo ro);

    //约考信息
    PageBean<StudentEaxmVo> queryStudentYueKao(SelectByStateRo ro);

    ShowUpdateExamVo showUpdateExam(long studentId);

    int  saveUpdateEaxmData(StudentExam ro);

    //查询单挑记录
    StudentExam selectOne(long id);
}
